﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ThuongMaiDienTuFinally.UserBidding
{
    public partial class HomePage : System.Web.UI.Page
    {
        DBDataContext db = new DBDataContext();

        protected void Page_Load(object sender, EventArgs e)
        {
            loadData();
        }
        
        public void loadData()
        {
            var lst_pro = (from c in db.Tb_SanPhams
                           select new { c });
            dtlst_product.DataSource = lst_pro.ToList();
            dtlst_product.DataBind();
            
        }
    }
}